package cn.iocoder.yudao.module.wecom.controller.admin.msgsendlog.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.List;

@Schema(description = "管理后台 - 消息记录 Response VO")
@Data
@ExcelIgnoreUnannotated
public class MsgSendResultRespVO {

    @Schema(description = "消息id", requiredMode = Schema.RequiredMode.REQUIRED, example = "15812")
    private Long id;

    @Schema(description = "下一个分页游标")
    private String nextCursor;

    @Schema(description = "群发方式：single-客户；group-群")
    private String chatType;

    @Schema(description = "数据列表")
    private List<SendList> data;


    @Data
    public static class SendList {
        @Schema(description = "外部联系人ID")
        private String weCustomerId;

        @Schema(description = "客户群ID")
        private String chatId;

        @Schema(description = "发送状态：0-未发送 1-已发送 2-因客户不是好友导致发送失败 3-因客户已经收到其他群发消息导致发送失败")
        private Integer status;

        @Schema(description = "发送时间")
        private LocalDateTime sendTime;
    }

}